package cn.qingyun.gis.modules.sftp.constants;

public class FileItemState {
    /**
     * 待处理
     */
    public static final Integer INIT = 0;

    /**
     * 已新增
     */
    public static final Integer ADDED = 1;

    /**
     * 已删除
     */
    public static final Integer DELETED = 2;

    /**
     * 已忽略
     */
    public static final Integer IGNORED = 3;


    public static String getText(int code) {
        if (INIT.equals(code)) {
            return "待处理";
        } else if (ADDED.equals(code)) {
            return "已新增";
        } else if (DELETED.equals(code)) {
            return "已删除";
        }
        return "已忽略";
    }
}
